package com.hippo.core.constant;

/**
 * @ClassName Constants
 * @Description TODO 常用的常量
 * @Author tangxl
 * @create 2023-05-04 16:25
 **/
public class Constants {
    /**
     * 常用时间格式
     */
    public static final String DATE_FORMAT = "yyyy-MM-dd";
    public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

    /**
     * 常用的状态码
     */
    public static final Integer SUCCESS_CODE = 200;
    public static final Integer ERROR_CODE = 500;
    public static final Integer NOT_FOUND_CODE = 404;
    public static final Integer UNAUTHORIZED_CODE = 401;
    public static final Integer FORBIDDEN_CODE = 403;
    public static final Integer BAD_REQUEST_CODE = 400;
    public static final Integer METHOD_NOT_ALLOWED_CODE = 405;

    /**
     * 数据库名
     */
    public static final String DATABASE_NAME_ONE = "java_study";
    public static final String DATABASE_NAME_TWO = "nacos";

    /**
     * 文件名后缀
     */
    public static final String FILE_SUFFIX_DAT = ".dat";
    public static final String FILE_SUFFIX_TXT = ".txt";
    public static final String FILE_SUFFIX_XLS = ".xls";
    public static final String FILE_SUFFIX_XLSX = ".xlsx";
    public static final String FILE_SUFFIX_CSV = ".csv";
    public static final String FILE_SUFFIX_JSON = ".json";
    public static final String FILE_SUFFIX_XML = ".xml";
    public static final String FILE_SUFFIX_SQL = ".sql";

}
